﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;

namespace IURIP
{
    /// <summary>
    /// The DataBlock interface. A data block indicate one data source unit provided data to target
    /// </summary>
    public interface IDataBlock
    {
        /// <summary>
        /// Gets the target
        /// </summary>
        ITarget Target { get; }
        /// <summary>
        /// Gets the data block name
        /// </summary>
        string Name { get; }
        /// <summary>
        /// Gets the data block connection info
        /// </summary>
        string From { get; }

        /// <summary>
        /// Initialize the data block from configuration file
        /// </summary>
        /// <param name="node"></param>
        void InitByConfiguration(XmlNode node);
    }
}
